Fix getSources' check for Entity
fix linkres binding