small fix to events template for the API