fixed unmount bug