fix for REGISTRY-2181
Merge pull request #4 from cnapagoda/master

fix for REGISTRY-2181