reinitattr is deprecated (fixes #4018)