Fix writing of NSOF small rectangle