fix bug after loaded modal dialog