fix delta computation