fixed wrong options condition