adding fix for height and width bug