Fixed an issue with loading sprites.