Fix problems with invalid frames after evaluating an expression

Due to this problem e.g. variables view worked incorrectly after evaluating an expression