Fix definition of beginElement target