fixed remove function error linking current->next