Fixed the form refresh bug.