fix bug in linear search tree emit