add flags to solve compile error
dirty fix