fix at_cavity detect line error