fixed bug of accessing reference of unmapped read