fixed problem with zeros