Added the option to choose the first joined channel

Also fixed a nullpointer bug