When it reaches the end of the loading bar, it crashes. Why?