fix api events template error