Fixed #11 invalid access resources which are not under template root path.