Bugfix in read method