remove -Wno-array-bound
fix array out of bound errors