Fixed LinkFacter

TypeError: %d format: a number is required, not NoneType