fix importr bug