Fix several warning