fixing bad comparison of options value