Fix bug with listname autosize not working on initial page load