Remove uneeded template compile line and fix links callback