fixed getInstance not passing some params it was given.
Merge pull request #222 from unwin/develop

fixed getInstance not passing some params it was given.