fixed MasterJob

Problem that if the buffer is written fast enough the keys get
scrambled.  Used a thread.sleep to fix this, but need a real solution