Fix Google event function