Adding fix to the loops cmd