Window maximize bug fixed.