fixed the Open function to read all the attributes.