fixed wpf ui updating issue