Parse all sections of codes + Fix index error