Fix licence check