fixed bug in rets import