fix #2 checking if confirm is true, not a checkbox