Small bug fix layout dialog