fixed the max gravity