Fix bad call to maskpoints