[NCuboid] PASS and CLOSED flags are broken. Fix #195