fixed bug in texture panel