Fixes COOK-3393 bug