Oops, forgot to reset the frame when unchanged.

Fixes #5861.