fixed some issues which arose with the fact that zero dimensions are no longer present.