Fixed typo and changed erb template check