Fixed bug when setting the price