fix possible merging nil to Hash