mainactivity fix