Fixed cleaning up of linked source file