fixed a few small operator overloading bugs