fix: handle str keys when setting result