Be compatible with numpy 1.6