Fixed an issue with erb