BUG: fixed the resolution for the masks=