fix app flash notification bug when no internet connection is available