fixing texture selection after search