fixed bug with tick position updating