fixed bug on changing the width of current app window.