fix to show sidebar when needed