Fixed some bugs with adding achievements