fix upgrade to deflate