fix TypeError - the right way ()
Merge pull request #370 from douglasmiranda/fix-typeerror

fix TypeError - the right way