Fixed double main-loop problem