Fixed an issue about achievement

Fixed an issue where achievement did not work properly.