fixed a bug in comm_get_attr