Fix bug where autoheight plugin