fix the ambiguous type defination