fix to get_corners