fixed semantic error