Fix edit event panel bug