fixed a small bug with the types of unary operators