fix texture load bug