fix bug a critical error in option windows