fix bad assignment