fix ride profit calculation, fixes #603