Fixing bug where clicking in a collapsed area closed it