fixed bug on hide navigation bars some time on exit