Fixed bug not showing loops