fix bug with autoTicks mode