fix nilclass for current user when clicking on profile