BUG: fix 1xN mask on 1xN frame

closes #4071.