Looser check_rep for decompression and fixed one conditional