fixed the default null errors