fix waitfordb