bugfix clock adjust and writeChar

bugfix clock adjust and writeChar