Fixed bug with ejs template engine