feature #1664: Fix for actions template bad parsing