Fix a couple more bugs in texture tool