Fix global_bydirection