fix for pandas=0.12.0