Fix the order in the extract_features

Fixing #1158 by add trailing zeros to beginning of the key to extract features.