fixes #3776

for further see: https://github.com/hazelcast/hazelcast/issues/3703