Fixed a logical error where extend never returned success