fix issue with None key