fixed an issue on the buy page