Fixed what seems to be a silent bug

I believe this is what is intended.