Fixing issue where params object wasn't being passed properly