Reset stuff in find_mask