Fixing ui size policy