fixed semantical error