Fixed invalid options finding best path