fixing a small issue if sidebar is closed an your project is deleted