Correct expression compiling function.