Fixed the layer apply_constraints function calls.