paint undef and offline always grey