Fixed Texture loading bug