Fixed another issue in loadSpriteSheet().