fix mask when no data