fix buying resources