correct warnings

correct the warnings