Slight fix for pandas v0.12