fixed errors when blank key lines