Fixed app not refreshing after re-opening