Fixes #150

Take a look, i don't know how, but if fixes the issue. I haven't read much into R_IO, so maybe I'm wrong.