fix output constraints not always being respected