Fix issue when opened page is a form