Fixed bugs or reading nulls.