Fix bug in balance pesister. Set accouting reference.