fix broken dictionary assignment for features resulting from cavalier removal of sorted