fix issue of wrong argument of afterRead