fixed bug concerning compression