Fixed issue in confirm method