[DEV] stream write correct integer