fixed error on inserting friends_count