fixing injected functions in profiles