bug: compatible for old pandas