Slight tweak to corner determination