Fixed handling more than one link: use rpush instead of lpush