Fixing bug where malformed params would cause updating to fail.