fixed uint16 overflow bug for []data