fixed errors after creating res.tpl to hold some css links