fixed a bug in arithmetic ops