simple fix of freeguithread remaincode invocation