dgive proper details of bikes.
digital speedo may have a primary basttery (non rechargable ) or rechargable battery or it may altogether use ur own bikes battery ,, or it may run of directly from the generator in which case it should work only when the bike is started,,
so its best to replace battery and check it,,
post pics of the problem if u can,,