fix bug when click cancel, tab bar will be hide