fix inconsistent local database key (fixes #139)