fix eventloop call