Fix issue when element is transcluded

 * input elements appended in the compile function are not the same as the input elements available in the link function.