fix ejecting