Fix broken cancel button on first dialog