fixed negative caff bug