fix container being closable even when perspective is locked (fix #20)