Minor correction to avoid notification flood
if the app is in the inactive state