fixed checking address component's type