Fixed a bug in the Formula parser