fixed heightoffset bug