fixed problem with async tasks being sync