Fix hide.leave problem with IE. Fixes
#466