fix loading texture