fix database save error for lists