Fixed namespace bug in adpater type