Fixed bug in semantics update script.