fix mainactivity