'substitute_variables' was not listed amongst the symbols that are pre-parsed, which meant that it was always rejected.