Bug fix.

Javascript error as parameters incorrectly passed in.