fixed final corner problem