Correct trimming of frame vars