Something strange is happening with the common subexpressions