fixed an error in delta