         ApiGet.congress "legislators?state=#{$scope.state_district.state}&title=Sen", (error, data) ->
           if not error
             for sen in data
-              $scope.district_reps.push(sen)
+              if sen.title then $scope.district_reps.push(sen)
           else console.log "Error: ", error
           , this
         ApiGet.congress "legislators?state=#{$scope.state_district.state}&district=#{$scope.state_district.district}", (error, data) ->
           if not error
-            $scope.district_reps.push(data[0])
+            if data[0].title then $scope.district_reps.push(data[0])
           else console.log "Error: ", error
           , this
+
 
     $scope.highlightDistrict = () ->
       if not $scope.state_district.district 

    $scope.defaultFocus()

    $scope.$watch('state_district', (newVals, oldVals) ->
      if $scope.state_district.state
        $scope.setDistrictData(newVals, oldVals)
        $scope.highlightDistrict()
    , true)

    $scope.$watch('district_reps', (newVals, oldVals) ->
      if $scope.district_reps.length and $scope.state_district.state

      if $routeParams.bioguide_id.length > 0
        ApiGet.congress "legislators?bioguide_id=#{$routeParams.bioguide_id}", (error, data) ->
          if not error
            if not data[0].district 
              for state in ["AK", "DE", "MT", "ND", "SD", "VT", "WY"]
                if data[0].state is state
                  data[0].district = "0"
              if not data[0].district then data[0].district = "1"
            $scope.state_district = {state: data[0].state, district: data[0].district}
          else console.log "Error, Senator/Rep not found."
      else console.log "No parameter"

