Fixed mainactivity crash