fixing opposing corners bug