fix all main activity problem