Fix delete statements