Avoid infinite loop when used with Auto Layout