fix bug in FEATURE_TO_DIM