     #
     entity.needEntity(user_id) unless entity[user_id]?
     #
-    initials = initialsof entity[user_id] unless initials
-    email = entity[user_id]?.email?[0] unless email?
+    # overwrites if entity is cached
+    initials = initialsof entity[user_id] if entity[user_id]?
+    email    = entity[user_id]?.email?[0] unless entity[user_id]?.email?[0]?
+    image    = entity[user_id]?.photo_url if entity[user_id]?.photo_url?
     #
     div class: 'avatar', 'data-id': user_id, ->
-        image = entity[user_id]?.photo_url unless image?
-        if image
+        if image?
             if !viewstate?.showAnimatedThumbs
                 image += "?sz=50"
             #

        name = nameof e
        firstname = e?.first_name
        return  firstname.charAt(0) + name.replace(firstname, "").charAt(1)
    else
        return '?'


            , onload: (ev) ->
                # when loading successfuly, update again all other imgs
                ev.target.parentElement.classList.remove "fallback-on"
        div class: "initials #{if image? then 'fallback'}", initials

nameofconv = (c) ->
    {entity} = require './models'
