fixes squeeze bug introduced in recent numpy release