fix issue of height for few graphs.