Fixed retainUncompressed.

Hi, just glance over the code, I think this retain logic might be wrong.