Fixed achievement system. Not sure if it works