Fixed a bug when parse views