wrike: fixed the execution flow