fix bug with delayed mockdb