Fix gauge when resize called - #546