Corrected way to process scalar expressions