Fix invalid method call for linked resource, fix #29