Attempt on fixing argument type mismatch exception.

No luck so far though.