Fixed errors in MainActivity