Flink 1134

fix for https://issues.apache.org/jira/browse/FLINK-1134