Fixed bug in main.js

Now story achievements works ok.