Bug on feature calculation