Prevent crash on dismount, thanks Soledge for the report!