don't trust in attributes
(cherry picked from commit f0f7817)