Fix bug where target was being used to initialize instead of source