Fixed agreement delete bug