Fix error in term and atom