fixed bug on 'address already in use'