Fix table formula bug with negative result numbers