Quick fix of minimum needs Key Error.