Fixed bugs to read all the elements