Fixing a bug that caused capture failures.