Fixed confirm extension when no element is passed