Minor bug fixes for +io and +events