Fixed the way of canceling picker