Fixed sub templates path (security) issue