fix bug in codigos