Fix unary minus operator

fixes #7815