Fix for disappearing refactoring dialog.