fixed bug when using thief tools