[Bug Fix] Fixes segfault when picking between multiple templates.

What it says on the tin.