Fix formatting issue with ticks inside ticks