Fixed undefined variable notice in AutoRejoin