correct for check MODATTR on itself (fixes #3837)