Fix bug in calling receive Loop