anm: prevent infinite loop