fixed error in erb