update achievement after grade changed

the expire should only happen after the update of achievement is completed. i guess you know the reason.