fix notice warning