Fixed friend bug
Fixed some bugs