fixed saving asynchronously problem