Fixes bug with devel version of pandas