Removed deprecated calls

I've just found that the webcode was still using a few calls that we've deprecated.
Here is the fix,

Matthieu