fix typo in rdb loading function