fix bug when setting a scope in params
Merge pull request #34 from mpguerra/master

fix bug when setting a scope in params