fix unary and binary reference