Added workaround for Numpy 1.6.x