update cflags
fix random error