Fixed template issue thanks to Naomi Syfer of StackOverflow