Fix links and periods bug