small cleanup error_dialog, remove dummy calc