Flattening yield curve puts investors on notice