fix mask to prevent varying length stats