fix bug with long reads