fixing numpy bug on 1.7