fix for github  issues 3830

https://github.com/hazelcast/hazelcast/issues/3830