Fixes minor bug in submitting expression