Battery reduces on % when connected on mains

Can you advice, if the battery is connect to the mains running at 90% or less ,if i insert my USB connection for work,The % will reduce until it reaches to 1% and it will shut itself down even though the mains is plugged in .can you please assist