Fixed bug due to options window calling update on WM_INVALIDATE