fixed updating texture