Deadlockfix

@Tyesb @gggmyyy @ADukeLabs 

I fixed the deadlock.

It was really simple have a look and see.