Fixes bug I created like a moron.