added fix for nil confirmation