fix admin scripts in no-debug mode