Fixed a couple of off-by-one errors in crawler causing segfaults on Windows.