fix "Address already in use" bug