Found that rectangular masks are invalid