Fixed bug so sprites reset after switch