fixed some pandas->r conversion issues