remove obsolete direction attribute