Fixed a warning on active debug mode and possible empty links