Fix bug with wrong logged attribute name