small bugfix for code reader