fix for setting handler parameters first run