bugixes for planning with constraints