Fix to prevent decrements from becoming negative