fix zero width or length when with -a option