Fixed a crash and friendsList online bug