Fixed a bug in periodic systems in MCMC where box vectors were set only after positions.