fix advance bug