Fix DispatcherLoop error with client prefix keys

DispatcherLoop does not work properly if a client have configured a
prefix for the keys