ui flickering fix