fix bug in feature tracking