fix ack error return type