Fix bugs:
1. Setting -> Menu -> Cancle, crash