dg_mosaic: Make it not fail in funny cases