pamr fix for zeros