[cleanup] cleanup compiler warning

- tedious fix
- review is welcome