fix invalid memory access
remove -Winline