parser: Fixed constant folding bug