Make sure the dependency fog is included

- Use _cset instead of ternary operators on template