fixed undefined autohide