fix lines class detection