fix get_price

based on the get_reference_paranoid change in purchases module
Fix whitespace and end new line