Fixed broken logic; bad copy & paste