fixed some texture binding issues