fixed expression box clearing on exceptions