Fix repeating input/output