fixed stm.dump function