fix error relating to ejs rendering