Fixed link loop on protected entries, fixes #802