Fix PersistentDict undefined bug.