Semantic analysis partly working