Fixed bug: bias potential not updated correctly