bug fix for check if node is a lesson