Fix diagonal directions