Fixes texture loading