fixed issue with empty links not being empty