Fix for CB-4674

Fix for https://issues.apache.org/jira/browse/CB-4674