fixed issue with nil-class after logging in for the first time