fixing logged balance