Fixed bug that didn't utilize clamping