Fixes bug for naming parameters

I didn't change the code to account for beta prior on tags; this didn't
result in any bad behavior though, since order was still ok.