Fixed an issue where injected is also the main