fix rdbcache bug from 64bit conversino i guess