removed debug code
hidden contents were not correctly restored when the editor was stopped. fixed