Fixed bug introduced by 6baa7e85c42ed35271925ee15d8c4f684b2250be.

We shouldn't give the first parameter if the method is static.