Autohide tweaks.
Fixed NullpointerException