fixed a minor numpy 1.5 incompatibility