fix #attributes to include lazy attributes