Fixed silly mistake in read method.