Fix bug on resize (with using dots)