Fixed bugs in adding games