fixed dialog errors