fix bug in logic upon recieving a join request