fixed issue with delta computation