Fixed bug in confirm class