Quote validation fix