Attempted fix for #44 (Sometimes overlays are not created)