Fixed bug with function scope not working correctly, arguments were
being placed in the old scope