fix where delay is specified in the template definition by the client