tried to fix corner bug, didn't work