Fixed bug where -func(x) was reconstructed as -1func(x)