Wrong path to image, solved (Avatars 3.6)

I had a problem Avatars plugin v3.6 in Wordpress 3.5, in a wordpress multisite install (without buddypress).
The "User avatar" was working fine.
The "Blog avatar" was not working: It uploaded the image fine, I could crop it fine, but then, when the page reloaded, the path to the new image was wrong:

The plugin function "get_blog_avatar" returned this:

And it should return this:

The number between the -- is the id blog (in this case, 14), was missing.

I solved it by editing the function "get_blog_avatar", defined in the file plugins/avatars/avatars.php

In the line 1391 I replaced this:
$path = 'http://' . $current_site->domain . $current_site->path . 'avatar/blog-' . $avatar_user_id . '-' . $size . '.png';
with this:
$path = 'http://' . $current_site->domain . $current_site->path . 'avatar/blog-' . $id . '-' . $size . '.png';

so, basically, I replaced $avatar_user_id with $id, and now it works as expected.

Best regards,