Workaround https://issues.apache.org/jira/browse/KAFKA-1718