fix fence direction