fix typo on gravity population functions