Fix assert: Off by one