modified another bug not returning correct width