Line 5. I changed the name to box, because my name is not dotproduct, and it seems to work. That would explain why it only works for you, I guess.
I didn't look at anything else in the code, so I don't really know why that does anything.
Related: Positions are sort of
wonky on my resolution.