fix to getAttributes