got rid of arbitrary feature length bug