add some more fixes to erb rendering