fixing bug where customer reference pointed to Window