fixed dialog initialization