Fixed unmount bug.