Modofied and fixed autojoin command