Fixed some bugs with the start() function