fix variables that have been initialised from the return of another method call