fix bug while creating new page