fix loop emission