fix setting breakpoints

I should have committed this a while ago, when I actually did this. I know this fixes setting breakpoints, I can't remember if it also fixes other things. You can't remove breakpoints yet; right now I'm fixing reloading a site and making sure breakpoints still exist and such. Then I'll fix removing breakpoints (I suspect some of the bugs with removing breakpoints will be simplified after the other work)