Bug fix, next block was incorrect.

Small but important fix.