Fixed fatal error in the JoinListener class