Fixed onconsistencies in IO