fixed bugs for the height setting of  layer 3