fix bug in logic lesson