fix(out): fix redirect when no target is set
fix(poll): fix undefined variable
fix: use correct variable type (boolean instead of int)