fixes for yield when there're ts errors