Fix some bugs in the *_delete functions in userio.js