PER: fix ASAN runtime error: left shift of negative value -1