Fixed a few lines of MainActivity