Cannot open a file from SD when using multiple loops [SOLVED]