Fixed replaceOption boolean value