some flickering fix