Fixed the buying feature