Fix purchase controller errror