Fix bug when options window does not bring to front