Remove code prototype code where the settings variables were being modified, this code works in single threaded servers but might not work on multithreaded servers.