fix achievements
fix several breaking bugs