Try  to fix the last link issue

The logic to identify if code for a template must be generated seems to be flawed.
Just comment out this code to see if it solved the links errors.