fix for color not reflecting element state