Fixing delta.cpp