fixed next bug in handle functions