fix bug in ages