Fixed bug (probably still some bugs). Small bug fix that makes advanced settings more usable