Fixed diagonal checking