Fix issue with cube constraint projection