Fixed bug in MainActivity