Fixes element colors when using mouse