fix issue with old levelDb