fixing raw export problem