Fixed bug in sled_destroy.