FIxed layers not updating correctly when last item was deleted