fix issues with mcmcdb_resmple