fix ray bug in bottom left corner