fixed crash that occurs during first initial sync in gui mode