Bugfix in handleFirstExecute function. now it seems to be working