dynamic texture bug fix