fixing a bug in folsom to havana upgrade