fixed getInstance not passing some params it was given.