fixes event update bug