Fixed an expression adding bug.