Fix for disappearing refactoring dialog.

This fixes issue #189.