fixing erb template issue