fix broken constraints, eliminate annoying warning