Fixed an issue where icons may not be updated after being replaced.