fixed issue with calculating price