fix graph update on event remove bug