fix the next block issue