fix multiple pdf viewer directives on the same page