Fixed the U3 writeCal method.