Fix null user error