Fixes a bug with autohide. Fixes #4.