Change macro name OBJ_CONNECT to OBJ_WRITTEN