minor fixes. Tested with PacBio data.