fix direction layout