Fix for broken template

Today we learn that I am not good at remembering to close if statements.