A counterexample to two hypotheses on projective and flat modules