fixing a layout bug when constrainig a view in its superview