small fix to API events template syntax