Fixed buy shares bug