Check for loop in put and get path