fixed Z overflow Error