Fix multiple backgrounds in editor

I think this fixes issue #6