fix code valor consulta