Fix hierarchy items layout