fixed a problem when a one value is empty