Fix deprecated flag