fixed missing constraint