Remove View source when not defined and fix typo