fix TypeError values is null