fix template issue for dynamic templates