Vector in stack order incorrect after maskng issue #24