Fixed temp unmount function