fixed bug for the height setting of layer 3