Fix autogrow on firefox