Fixes a bug with autohide. Fixes #4.
Merge pull request #18 from gdambrauskas/autohidefix

Fixes a bug with autohide. Fixes #4.