minor fix for avatar plugin