fix for retry bug