fix direction with empty array