Fixed ClassCastException on login (lol)