Fix I/O of handlers