Fix bug to flash registry after add new page