Corrected bug  in delta.