Fixed small but important bug in last commit.

I had commented out the part where the template is actually fit!