Trying still to fix loop issue