Bug fix for eject media