fix pydata loading problem, ported from 6_2_X