updated ApplyParameters implementation to be more robust
i don't like this test, come at me bro