Fix batch start..stop calculation (closes #63).