             return false
         num_projects = @_num_projects
         for quota, val of @state.upgrades
-            if val*num_projects != @_your_upgrades[quota]
+            if val*num_projects != (@_your_upgrades[quota] ? 0)
                 changed = true
         return changed
 

        if input_type == 'checkbox'
            input = if input > 0 then 1 else 0
        remaining      = misc.round1(remaining * display_factor)
        show_remaining = misc.round1(remaining + current - input*num_projects)
        limit          = current + remaining

        cur = misc.round1(current / num_projects)
        if input_type == 'checkbox'

            return

    render_upgrade_row: (quota, total, remaining, current, yours, num_projects) ->
        {display, desc, display_factor, display_unit, input_type} = schema.PROJECT_UPGRADES.params[quota]
        yours         *= display_factor
        current       *= display_factor
