fix bug, texture device lose