[offline] fix bug in cached event