fixing a previous velocity template issue fix

Previous fix doesn't work correctly