fixed erroneous entry continuous loop