Fixed XViewLayoutModel bugs about file.