Fixed a minor oversight in splice, whereby a function did not return the correct value.