Fixed indexing error in sim_feature