fix context of erb template