fixing issue with incorrectly displayed status icon