i think i fixed corner checks