d3 background bug on tile close