fixed async problem