feature #1664: Fix for broken template instantiate dialog