Fixed bundle replacing in links in entity manager.