Fix links counting
Fix links counting once again