bug fix,reference(s) can be set to null