Add compress command workaround for TypeError.