fix issue when prototype methods are on params object