fixed crashing, when app is used on computer without battery