fix width overflow bug