fixed some error in friendship model