Fix compilation in recognition