fixing range for visible min max