fixed bug with external contacts