fixed small bugs, and fixed bug to prevent exception if user has no friends