fix error with directory entry templates