fix user persistence