Fix bad logic due to copy/paste error.