Fixed bug with infinity loop