fixed term detect bug