fix #3923: signature template not resolved recursively