fixed logic for ejs fileS
fixed variable mismatch