error message fixed when app enters foreground