Legal mix-up frees Ramos