Used proper function for window_invalidate.