Fixed null object bug in texture animation