fix main activity