fixed compression ratio problem