loop test fix