fix null exception occurs when key is null