Fix saving/sending byte and not integer (causes issues when client sends int)