infinit error loop issue fixed