Corrected some more Numpy bugs.