fixed join.php bugs