Change some int to byte in logger and parameter