Bugfix on add_features.