fixed #285 fix invalid height