Fix for purchase calculations