fix an issue when button names are too long that they are not visible anymore