fixing an issue with displaying stats
improving handling of attributes