fixed stupid boundary bug, forgot to replace something in copy pasta.