Fixes array bug in clipping mask