diff --git a/views.py b/views.py
index 8db000e5878dc27ee975023978ddfd192ad2ab12_dmlld3MucHk=..4cf8c1fd9d0843ef80cbdb54a870ad6e877c28b1_dmlld3MucHk= 100644
--- a/views.py
+++ b/views.py
@@ -121,7 +121,7 @@
             url = self.req.build_ajax_replace_url(
                 'comment%sHolder' % entity.eid, rql_for_eid(entity.eid),
                 'inlinecomment')
-            if req.cnx.anonymous_connection:
+            if self.req.cnx.anonymous_connection:
                 self.w(u' | <span class="replyto">%s <a href="%s">%s</a></span>'
                        % (_login_register_link(self.req),
                           xml_escape(url), self.req._(replyaction.title)))
@@ -242,7 +242,7 @@
             #if req.use_fckeditor() and req.property_value('ui.default-text-format') == 'text/html':
             #    req.fckeditor_config()
         if req.cnx.anonymous_connection:
-            self.w(u'%s' % (_login_register_link(req), req._(u'to comment')))
+            self.w(u'%s %s' % (_login_register_link(req), req._(u'to comment')))
         self.w(u'<div id="comment%sHolder"></div>' % eid)
         if rset.rowcount:
             self.w(u'<ul class="comment">')