Fix subscribe template logic

but damn it's ugly.