Remove bugs when initializing record editing page.