fixed that some lines were printed to early