Fix two small bugs. One is the fininsh of MainActivity, the other one is the error while the divisor is zero in a division