Fix a bug in util.frame2params_3dna