     @geo?._hideAll() # hacky
 
   addPolygonToFlags: (e) =>
-    return if !@polygonHasChanged
+    return if !@polygonHasChanged()
     flag = @getFixedPolygon()
     if flag
       @flags.push(

    @showPolygon()

  multipleBuildingClick: (e) =>
    return if @isMultiple && @flags.length > 1 && !confirm("Some buildings you have created will be lost if you uncheck this. Continue?")
    @isMultiple = $("#multiple-polygon").is(':checked')
    @updateMultipleStatus()
    if !@isMultiple && @flags.length > 0
      # kind of hacky but allows for first poly to be shown
      # so user doesnt lose the very first fix they did
      @map._editablePolygons = []
      @geo.updateLatLngs(@flags[0].layer.getLatLngs())
      @geo.addTo(@map)
      @eraseGhosts()

  updateMultipleStatus: () ->
    if (@isMultiple)

    @isMultiple = false

  clearScreen: () =>
    document.getElementById("multiple-polygon").checked = false
    @multipleBuildingClick()
    @eraseGhosts()
    super()
