Fix the buy stock bug