fix events template