fix notices, put default value