The dynamics of bequeathed tastes with endogenous fertility