fix cram reading