fixed dynamic height bug