Payment calculation bug fixed.