Fixed the gauge frame bug