I fixed a mis-calculation in the main function option checking