Fix inf loop bug