fix issue: querying 'type' in attributes (GET /node?query&type=xxx) doesn't return expected answer