STM bug fixed