Added more obvious errors to ref