fix crash on first attempt for a new user to add new data