fix all zeros bug