advancement bug fix