Fix the bug "Only reset the frame's part when the respective part changed"