fix deallocating screen if no sidebar