error fix

read(), write(), write_image(), write_emoticon(), cwrite(), leave()