If you want the result you were aiming for initially, then you should adjust the dose to get the same g/L ratio. If you were aiming for a 25L batch and now have a 5L batch, then the ratio is 5L / 25L = 0.2. Therefore 15g * 0.2 = 3g & your calculations are correct.
My condolences on the loss...