Fixed packagesstuff and bug that caused a nullpointerexception to be
thrown when creating a new team