Fixed get file name bug in add new page type