fixed bug for 0 width regions