fix for https://wso2.org/jira/browse/REGISTRY-2368
Merge pull request #32 from isuruwan/master

fix for REGISTRY-2368