correct tooltip layout crash