Fixed a compare bug where a bool was received instead of a string

Also forced the link-count to become a string as that was causing an exception.