bugfix: fit_background was wrongfully erasing the first active edge

Dear all, 

I think this fixes issue #315

The problem was that the first _active_edge of the list was always erased.

Hope this works.