cause error 'Invalid read of size 1'