Fixed an error in calculating tick length in Tick-class