Fix semantical error