Correct errors in erb creation