Fixed bug caused by advanced options change