What determines the cost of fixing a bug?