balance validation fix